import java.util.*;
import java.util.concurrent.TimeUnit;
import static java.lang.System.*;

public class Lrn000 {
	private static void my_sleep(long ms) {
		try {
			Thread.currentThread().sleep(ms);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		/*
		String format_string = "%d/%c/%s\n";

		out.format(format_string, 18, 'M', "MSK");
		out.printf(format_string, 0, 'U', "(null)");
		out.println(0 + " / " + 'U' + " / " + "void");

		out.printf("w/o flushes:\n");
		out.printf("%d/", 18);
		Thread.sleep((long)3);
		out.printf("%c/", 'M');
		Thread.sleep((long)3);
		out.printf("%s\n", "MSK");

		out.printf("w/ flushes:\n");
		out.printf("%d/", 18);
		out.flush();
		Thread.sleep((long)3);
		out.printf("%c/", 'M');
		out.flush();
		Thread.sleep((long)3);
		out.printf("%s\n", "MSK");
		out.flush();

		out.printf("I'm done. See ya\n");
		*/

		/*
		 * Let's try once again
		 */

		out.print("Starting in ");
		out.flush();
		try {
			for (int i = 10; i > 0; i--) {
				out.print(i + "... ");
				out.flush();
				TimeUnit.SECONDS.sleep(1);
				//throw new InterruptedException();
			}
			out.printf("\n");
			//throw new InterruptedException();
		} catch (InterruptedException e) {
			err.println("Interrupted.\n");
			e.printStackTrace();
		}
		out.printf("See ya!\n");
	}
}
